#include "StmtTable.h"

StmtTable::StmtTable(){
}

void StmtTable::setStmtTable(vector<stmt_t> line){
	stmtTable = line;
}

void StmtTable::setWhileTable(vector<while_t> w){
	whileTable = w;
}

void StmtTable::setIfTable(vector<if_t> i){
	ifTable = i;
}

stmt_t StmtTable::getLineDetails(int line){
	return stmtTable.at(line);
}

while_t StmtTable::getWhileDetailFromLine(int line){
	return whileTable.at(stmtTable.at(line).index);
}

vector<while_t> StmtTable::getWhileTable(){
	return whileTable;
}

if_t StmtTable::getIfDetailFromLine(int line){
	return ifTable.at(stmtTable.at(line).index);
}

vector<if_t> StmtTable::getIfTable(){
	return ifTable;
}
vector<stmt_t> StmtTable::getStmtTable(){
	return stmtTable;
}